/*
 * sum.cpp
 *
 *  Created on: Feb 2, 2013
 *      Author: w1084063
 */

int sum(int a[], int size){
	int sum=0;
	for (int i=0;i<size; i++)
		sum = sum + a[i];
	return sum;
}


